//
//  ViewController.m
//  1
//
//  Created by yinjiao on 16/9/13.
//  Copyright © 2016年 yinjiao. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UIButton *bth;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *two;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)one:(id)sender {
    if(_two.isAnimating){
        [_two stopAnimating];
    }else{
        [_two startAnimating];
    }
}
- (IBAction)onSwitch:(UISwitch *)sender {
        
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
